<?php
namespace app\index\model;

use app\common\model\SuperModel;
use think\Model;

class Img extends SuperModel
{

    protected $connection = ['prefix' => 'acc_dragon_'];

    /**
     * 表名称
     * @return   void
     */
    public function _initialize()
    {
        parent::_initialize();
        $this->table = 'acc_dragon_img';
    }
    /**
     * 标签列表
     * @return   [type]
     */
    public function doTagList()
    {
        $this->doList(['dir' => 'tag']);
    }
    /**
     * 公告图像列表
     * @return   [type]
     */
    public function doNoticeList()
    {
        $this->doList(['dir' => 'notice']);
    }
}
